<cfif Not IsDefined("session.id")>
		<cflocation url = "/ecada/" addToken = "no">
</cfif>
	
<cfif IsDefined("session.experiment")>
	<cfset experiment = session.experiment>
<cfelse>
	<cflocation url="/ecada/" addToken="No" >
</cfif>


<cfif IsDefined("form.submit")>

<cfelse>

	
	<cfinclude template= "/ecada/header.cfm">
<cfoutput>
	<style type="text/css">
								
									.stimImage
									{
										display: inline-block;
										margin-left: 10px;
										width: 75px;
										height: 75px;
									}
									
									.Questions
									{
										display: inline-block;
									}
									
									.Question-Row
									{
										
										width: 100%;
										height: 25px;
									}
									
									.Question-Row form
									{
										margin: 0;
										width: 100%;
									}
									
									.Question-Num
									{
										display: inline-block;
										font-weight: bold;
									}
									
									.Question-Text
									{
										display: inline-block;
										width: 370px;
									}
									
									.Question-Actions
									{
										display: inline-block;
										Width: 30px;
									}
								
									.button
									{
										width: 50px;
									}
									
								</style>
		<script type="text/javascript">
			$(document).ready(function(){
			//this function is defined in progressbar.cfm and is included in the header
				setProgressText("Questionnaires");
				setProgress(6);
			});
		</script>

	<cfquery datasource="exp" name="conditions">
		SELECT *
		FROM conditions
		WHERE expid = #experiment.id#
		ORDER BY id
	</cfquery>

	<div>
		Questionnaire start
	</div>
	<cfset i = 1>
	<cfloop query="conditions">
		
		
				
		<fieldset>
			
			<legend>
					Condition: #HTMLEditFormat(Title)#
			</legend>

		</fieldset>
		
		<div>
			Questionnaire #i#
			<cfset i += 1>
		</div>
		
	</cfloop>
	
	<div>
		Questionnaire end
	</div>
	
	<div>
		<div style="width: 100%;">
			<div style="width: 10%; float: left;">
				<form method="post" action="./../Step-2">
					<button class="ui-state-default ui-corner-all" title="Back" type="submit" value="Back">
						<div>
							<div style="display: inline-block; margin: 3px;line-height: 16px;"><b>Back</b></div>
						</div>
					</button>
				</form>
			</div >
			<div style="width: 50%; float:left;">
				<form method="post" action="./../Step-4">
					<button class="ui-state-default ui-corner-all" title="Next" type="submit" value="Next">
							<div>
								<div style="display: inline-block; margin: 3px;line-height: 16px;"><b>Next</b></div>
							</div>
						</button>
				</form>
			</div>
		</div>
	</div>
	</cfoutput>
	<cfinclude template= "/ecada/footer.cfm">

</cfif>



